/**管理员解扣 */
import axios from "../utils/request"

// 查看
export const getAdminList = (page, size) => axios({
    url: "/api/userlist",
    params: { page, size }
})

// 总数
export const getAdminTotal = () => axios({
    url: "/api/usercount"
})

// 增加
export const addAdmin = adminForm => axios({
    url: "/api/useradd",
    method: "post",
    data: adminForm
})

// 编辑
export const editAdmin = adminForm => axios({
    url: "/api/useredit",
    method: "post",
    data: adminForm
})
// 删除
export const delAdmin = uid => axios({
    url: "/api/userdelete",
    method: 'POST',
    data: { uid }
})